<?php

namespace Home\Controller;
use Think\Controller;

header('content-type:text/html;charset=utf-8');
class GetController extends Controller{

	/**
 * Created by PhpStorm.
 * User: TheWay
 * Date: 2019/3/18
 * Time: 12:43
 * 百家乐 当前期数信息
 */
	public function getHundred(){
		$data = array();
		$res = M('hundred')->where("type='0'")->limit(2)->order("id desc")->select();
		$data['code'] = '200';
		$data['msg']  = '成功';
		$data['content'] = $res;
		echo json_encode($data);
	}

	/**
	 * Created by PhpStorm.
	 * User: TheWay
	 * Date: 2019/3/18
	 * Time: 12:43
	 * 龙虎斗 当前期数信息
	 */
	public function getLonghu(){
		$data = array();
		$res = M('hundred')->where("type='1'")->limit(2)->order("id desc")->select();
		$data['code'] = '200';
		$data['msg']  = '成功';
		$data['content'] = $res;
		echo json_encode($data);
	}


}

?>